package com.lovo.ssc.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("shelves")
public class Shelves extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "goodsId",type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Integer goodsId;

    @TableField("goodsName")
    @ApiModelProperty(value = "商品名")
    private String goodsname;

    @TableField("goodsCode")
    @ApiModelProperty(value = "商品编号")
    private String goodscode;

    @ApiModelProperty(value = "销售数量")
    private Integer number;

    @TableField("goodsPricce")
    @ApiModelProperty(value = "销售价格")
    private Float goodspricce;

    @TableField("goodsType")
    @ApiModelProperty(value = "商品类型")
    private String goodstype;
    @TableField("goodsSpecs")
    @ApiModelProperty(value = "商品规格")
    private String goodsspecs;

    /**
     * 0-已上架、1-促销中、2-预售商品
     */
    @TableField("goodsState")
    @ApiModelProperty(value = "商品状态 0-已上架、1-促销中、2-预售商品")
    private String goodsstate;

    @TableField("goodsBatch")
    @ApiModelProperty(value = "商品批次")
    private String goodsbatch;


}
